package com.powernode.factorymodemethod;

public class Client {
    public static void main(String[] args) {
        WeaponFactory fighterFactory = new FighterFactory();
        Weapon weapon = fighterFactory.get();
        weapon.attack();

        WeaponFactory gunFactory = new GunFactory();
        Weapon weapon1 = gunFactory.get();
        weapon1.attack();
    }
}
